package com.hdax.service.Impl;

import com.hdax.entity.Demand;
import com.hdax.mappers.DemandMapper;
import com.hdax.service.DemandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DemandServiceImpl implements DemandService {
    @Autowired
    private DemandMapper demandMapper;

    @Override
    public List<Demand> findAll() {
        return demandMapper.findAll();
    }

    @Override
    public int insertDem(Demand demand) {
        return demandMapper.insertDem(demand);
    }

    @Override
    public int updateDem(Demand demand) {
        return demandMapper.updateDem(demand);
    }

    @Override
    public Demand findByid(int id) {
        return demandMapper.findByid(id);
    }
}
